package com.masiyi.dubboservice.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.masiyi.dubboservice.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Reference
    private UserService userService;


    @GetMapping("/hello/{msg}")
    public String hello(@PathVariable("msg") String msg) {
        return userService.hello(msg);
    }
}
